
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
gerber-plotter
Advanced tools
Streaming Gerber / NC drill layer image plotter
A printed circuit board Gerber and drill file plotter. Implemented as a Node transform stream that consumes objects output by gerber-parser and outputs PCB image objects.
Part of the tracespace collection of PCB visualization tools.
npm install --save gerber-plotter
# or
yarn add gerber-plotter
gerber-parser
is a peer dependency, so you probably want to install it too:
npm install --save gerber-parser
# or
yarn add gerber-parser
Or, use a script tag:
<script src="https://unpkg.com/gerber-plotter@^4.0.0/dist/gerber-plotter.min.js"></script>
<script>
// global variable gerberPlotter now available
var plotter = gerberPlotter()
</script>
var fs = require('fs')
var gerberParser = require('gerber-parser')
var gerberPlotter = require('gerber-plotter')
var parser = gerberParser()
var plotter = gerberPlotter()
plotter.on('warning', function(w) {
console.warn('plotter warning at line ' + w.line + ': ' + w.message)
})
plotter.once('error', function(e) {
console.error('plotter error: ' + e.message)
})
fs.createReadStream('/path/to/gerber/file.gbr')
.pipe(parser)
.pipe(plotter)
.on('data', function(obj) {
console.log(JSON.stringify(obj))
})
To run this module in a browser, it should be bundled with a tool like browserify or webpack. If you are using the script tag installation method instead, there will be a global variable gerberPlotter
available after you have included gerber-plotter.min.js
.
See API.md
FAQs
Streaming Gerber / NC drill layer image plotter
The npm package gerber-plotter receives a total of 147 weekly downloads. As such, gerber-plotter popularity was classified as not popular.
We found that gerber-plotter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.